package com.gluck.cases.core.modal.dto;

import com.gluck.cases.core.modal.BaseEntity;

import java.util.List;

/**
 * @ClassName CasesApiDTO
 * @Desc CasesApiDTO
 * @Author shiyongzhe
 * @Date 2022/5/28 - 5:36 下午
 **/
public class CasesApiDTO extends BaseEntity {

    private Long id;

    private String apiName;

    private String params;

    private String category;

    private String service;

    private String method;

    private Long pid;

    private String api;

    public List<CasesApiDTO> children;

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public List<CasesApiDTO> getChildren() {
        return children;
    }

    public void setChildren(List<CasesApiDTO> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "CasesApiDTO{" +
                "id=" + id +
                ", api= " + api + '\'' +
                ", apiName='" + apiName + '\'' +
                ", params='" + params + '\'' +
                ", category='" + category + '\'' +
                ", service='" + service + '\'' +
                ", method='" + method + '\'' +
                ", pid=" + pid +
                ", children=" + children +
                '}';
    }
}
